﻿namespace Agile.Service.Admin.Model.ViewModel.Sys;

public class InsertSysRoleRequest
{
    ///<summary>角色名称</summary>
    [Required]
    [JsonConverter(typeof(StringTrimConverter))]
    public string RoleName { get; set; }

    ///<summary>角色编号</summary>
    [Required]
    [JsonConverter(typeof(StringTrimConverter))]
    public string RoleCode { get; set; }

    ///<summary>角色菜单ID</summary>
    public List<long> Menu { get; set; }

    ///<summary>备注</summary>
    public string Remark { get; set; }

    ///<summary>排序</summary>
    public int Sort { get; set; }

    ///<summary>是否启用</summary>
    public bool Enabled { get; set; }
}

public class UpdateSysRoleRequest : InsertSysRoleRequest
{
    ///<summary>角色ID</summary>
    public long RoleID { get; set; }
}

public class QuerySysRoleRequest
{
    ///<summary>角色名称</summary>
    [JsonConverter(typeof(StringTrimConverter))]
    public string RoleName { get; set; }

    ///<summary>是否启用</summary>
    public bool? Enabled { get; set; }
}
